package com.bishe.bishe.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
@Table(name = "orderdetail")
public class Orderdetail implements Serializable {

    @Id
    private Long orderdetailId;
    private Integer orderdetailNumber;
    private Orders orders;
    private Species species;

    @Override
    public String toString() {
        return "Orderdetail{" +
                "orderdetailId=" + orderdetailId +
                ", orderdetailNumber=" + orderdetailNumber +
                ", orders=" + orders +
                ", species=" + species +
                '}';
    }

    public Orderdetail() {
    }

    public Orderdetail(Long orderdetailId, Integer orderdetailNumber, Orders orders, Species species) {
        this.orderdetailId = orderdetailId;
        this.orderdetailNumber = orderdetailNumber;
        this.orders = orders;
        this.species = species;
    }

    public Long getOrderdetailId() {
        return orderdetailId;
    }

    public void setOrderdetailId(Long orderdetailId) {
        this.orderdetailId = orderdetailId;
    }

    public Integer getOrderdetailNumber() {
        return orderdetailNumber;
    }

    public void setOrderdetailNumber(Integer orderdetailNumber) {
        this.orderdetailNumber = orderdetailNumber;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public Species getSpecies() {
        return species;
    }

    public void setSpecies(Species species) {
        this.species = species;
    }
}
